//
//  UIView+Addition.h
//  LiteraryTune
//
//  Created by 神州四达 on 2018/1/15.
//Copyright © 2018年 cxd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Addition)

@property (nonatomic, assign)CGFloat x;
@property (nonatomic, assign)CGFloat y;
@property (nonatomic, assign)CGFloat centerX;
@property (nonatomic, assign)CGFloat centerY;

//宽
- (CGFloat)width;
//高
- (CGFloat)height;
//上
- (CGFloat)top;
//下
- (CGFloat)bottom;
//左
- (CGFloat)left;
//右
- (CGFloat)right;

//设置宽
- (void)setWidth:(CGFloat)width;
//设置高
- (void)setHeight:(CGFloat)height;
//设置Origin
- (void)setOrigin:(CGPoint)origin;
//设置size
- (void)setSize:(CGSize)size;


@end
